import java.util.Scanner;
/**
 * This program executes a loop that accepts input and relays it back to the user. 
 * It terminates only when the input is "quit" or "exit". (Homework #2)
 * 
 * @author Tara Gallagher
 *
 */
public class Part2 {
    
    public static void main(String[] args)
    {
    	String s1;
    	String s2;
    	String s3;
     
    	while(true){
    	System.out.print(">"); // Prompts user for input.
        Scanner in = new Scanner(System.in);
        s1 = in.nextLine();
        
        // Allow the user to end the loop.
        s2 = "quit"; 
        s3 = "exit";
        	if(s1.equals(s2)||s1.equals(s3))
        	System.exit(0);
        else
        System.out.printf("%s\n", s1);
        }
    }
}